<title><?= $sf_response->getTitle() ?></title>
<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?>
<title><?= $sf_response->getTitle() ?></title>
<td><?php
    if ($sf_user->hasGroup('Administrator'))    
        echo link_to($mr->getMrno() ? $mr->getMrno() : __('-'), 'mr/edit?id='.$mr->getId());
    else
        echo $mr->getMrno();
    ?></td>
    <td><?php echo $mr->getBom() ?></td>
      <td><?php echo $mr->getProject() ?></td>
      <td><?php echo $mr->getSaleno() ?></td>      
      <td><?php echo ($mr->getReqarrdate() !== null && $mr->getReqarrdate() !== '') ? format_date($mr->getReqarrdate(), "D") : '' ?></td>
      <td><?php echo ($mr->getCreatedAt() !== null && $mr->getCreatedAt() !== '') ? format_date($mr->getCreatedAt(), "D") : '' ?></td>
      <td><?php echo link_to($mr->getComponentgroupId() ? image_tag('/sf/sf_admin/images/list.png', array('alt' => 'List', 'title' => 'List')):  __('-'), 'component/SLListModuleGroup?code='.$mr->getMrno().'&componentgroup_id='.$mr->getComponentgroupId().'&Authentication=VIEW_MR&backURL=mr~1list~2id~4'.$mr->getId().'&titleqty=Qty to request') ?></td>
      <td><?php $user = sfGuardUserPeer::retrieveByPK($mr->getUserId()); echo $user? $user->getFullname(): ''?></td>
      <td><?php echo CommonValues::$gMRStatus['value'][$mr->getStatus()] ?></td>
      <td><?php echo CommonValues::$gMRApprovalStatus['value'][$mr->getApprovalstatus()]  ?></td> 